import React from 'react'
import { View, Input } from '@tarojs/components'
import './index.scss'
const Button = (props) => {
    const { disabled, children, onClick } = props
    if (disabled) {
        return <View className='Button_box Button_box_opacity'>{children}</View>
    }
    return <View onClick={() => {
        onClick && onClick()
    }} className='Button_box'>{children}</View>
}
export default Button